package models;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import play.db.ebean.Model;

@Entity
public class City extends Model {

	@Id
	public Long id;
	
	@Column(nullable = false)
	public String name;
	
	public static Finder<Long, City> find = new Finder<Long, City>(Long.class, City.class);
	
	public static City create(String name)
	{
		City city = new City();
		city.name = name;
		
		return city;
	}
}